require('../css/runend.less')

require('../font/iconfont.css')


document.ready(function () {
    $authr()



    // 获取跑步后的数据


    let timeObj = JSON.parse(sessionStorage.getItem("runtime"))

    let time = timeObj.useTime.split(":");

    let t = "";
 
    for (let index = 0; index < time.length; index++) {

        t += (time[index].trim() + (index == time.length - 1 ? "":":"))
    }



    document.querySelector("#speed").innerHTML = timeObj.krololi
    document.querySelector("#useTime").innerHTML = t
    document.querySelector("#distence").innerHTML = timeObj.useDis

    document.querySelector('#back').addEventListener('click', function () {
        

        location.href = "./run.html";

    })

})


